# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

_author=VIPUL
_perlmod=Tie-EncryptedHash
pkgname=perl-tie-encryptedhash
pkgver=1.24
pkgrel=16
pkgdesc='Hashes (and objects based on hashes) with encrypting fields.'
arch=('any')
url='https://metacpan.org/pod/Tie::EncryptedHash'
license=('GPL' 'PerlArtistic')
depends=('perl' 'gmp')
options=(!emptydirs)
source=("http://cpan.perl.org/modules/by-authors/id/V/VI/$_author/$_perlmod-$pkgver.tar.gz")
sha512sums=('1b86af7ed2854f8b5a9f03f22484ecb08021efd87993b3f5786a56764478e022d5e2f2cbb87d4a832743a05e1983174481b95d3545175106a44b9911fc8adef7')

build() {
  cd "$_perlmod-$pkgver"

  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor

  make
}

package() {
  cd "$_perlmod-$pkgver"

  make DESTDIR="$pkgdir" install
}

